CMD=go
BIN_PATH=bin
SRC_PATH=src
all: clean build install

build:
	$(CMD) build -o $(BIN_PATH)/mydocker $(SRC_PATH)/*

install:
	cp bin/mydocker /usr/bin/mydocker
	cp bin/mydocker /usr/local/bin/mydocker

uninstall:
	rm -rf /usr/bin/mydocker /usr/local/bin/mydocker
	rm -rf bin/mydocker

clean: uninstall
